package com;

public class CclassMapper {

    int deleteByPrimaryKey(Long id) {
        return 0;
    }

    int insert(Cclass record) {
        return 0;
    }

    int insertSelective(Cclass record) {
        return 0;
    }

    Cclass selectByPrimaryKey(Long id) {
        return null;
    }

    int updateByPrimaryKeySelective(Cclass record) {
        return 0;
    }

    int updateByPrimaryKey(Cclass record) {
        return 0;
    }

    @Results({
            @Result(id = true, property = "id", column = "id"),
            @Result(property = "classname", column = "classname")
    })
    Cclass selectClassById(int id);
    @Results({
            @Result(id = true, property = "id", column = "id"),
            @Result(property = "classname", column = "classname"),
            @Result(column = "id",property = "studentsList",
                    many = @Many(select = "com.mapper.StudentsMapper.selectStudentsById"))
    })
    public Cclass selectClassaById(int id);
}
